import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: r => require.ensure([], () =>
          r(require('@/components/recentContact'))
        , 'recentContact')
    },
    //最近联系人
    {
      path: '/recentContact',
      component: r => require.ensure([], () =>
          r(require('@/components/recentContact'))
        , 'recentContact')
    },
    {
      path: '/addressList',
      component: r => require.ensure([], () =>
          r(require('@/components/Address/AddressList'))
        , 'addressList')
    },
    {
      path: '/addressApply',
      component: r => require.ensure([], () =>
          r(require('@/components/Address/AddressApply'))
        , 'addressApply')
    },
    {
      path: '/friendDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/Address/FriendDetails'))
        , 'friendDetails')
    },
    {
      path: '/createGroup',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/createGroup'))
        , 'createGroup')
    },
    {
      path: '/createGroupSetName',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/createGroupSetName'))
        , 'createGroupSetName')
    },
    {
      path: '/createGroupApplyJoin',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/createGroupApplyJoin'))
        , 'createGroupApplyJoin')
    },
    {
      path: '/createGroupSetId',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/createGroupSetId'))
        , 'createGroupSetId')
    },
    {
      path: '/createGroupSetInfo',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/createGroupSetInfo'))
        , 'createGroupSetInfo')
    },
    {
      path: '/ownerGroupDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerGroupDetails'))
        , 'ownerGroupDetails')
    },
    {
      path: '/ownerGroupDetailsSetNotice',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerGroupDetailsSetNotice'))
        , 'ownerGroupDetailsSetNotice')
    },
    {
      path: '/ownerGroupDetailsSetInfo',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerGroupDetailsSetInfo'))
        , 'ownerGroupDetailsSetInfo')
    },
    {
      path: '/ownerGroupDetailsSetName',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerGroupDetailsSetName'))
        , 'ownerGroupDetailsSetName')
    },
    {
      path: '/ownerGroupAddManager',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerGroupAddManager'))
        , 'ownerGroupAddManager')
    },
    {
      path: '/ownerManageGroup',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerManageGroup'))
        , 'ownerManageGroup')
    },
    {
      path: '/searchGroupDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/searchGroupDetails'))
        , 'searchGroupDetails')
    },
    {
      path: '/ownerGroupAddManagerList',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/ownerGroupAddManagerList'))
        , 'ownerGroupAddManagerList')
    },
    {
      path: '/sendAppLyJoinGroup',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/sendAppLyJoinGroup'))
        , 'sendAppLyJoinGroup')
    },
    {
      path: '/memberGroupDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/memberGroupDetails'))
        , 'memberGroupDetails')
    },
    {
      path: '/changeGroupOwner',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/changeGroupOwner'))
        , 'changeGroupOwner')
    },
    {
      path: '/groupMemers',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/groupMemers'))
        , 'groupMemers')
    },
    {
      path: '/groupMemersAll',
      component: r => require.ensure([], () =>
          r(require('@/components/groupPower/groupMemersAll'))
        , 'groupMemersAll')
    },
    {
      path: '/friendAdd',
      component: r => require.ensure([], () =>
          r(require('@/components/Address/FriendAdd'))
        , 'friendAdd')
    },
    {
      path: '/sendMessage',
      component: r => require.ensure([], () =>
          r(require('@/components/Address/SendMessage'))
        , 'sendMessage')
    },
    {
      path: '/friendAddSure',
      component: r => require.ensure([], () =>
          r(require('@/components/Address/FriendAddSure'))
        , 'friendAddSure')
    },
    {
      path: '/setting',
      component: r => require.ensure([], () =>
          r(require('@/components/userSetting/Setting'))
        , 'setting')
    },
    {
      path: '/session',
      component: r => require.ensure([], () =>
          r(require('@/components/session'))
        , 'session')
    },
    //会管家最近联系人
    {
      path: '/houseRecentContact',
      component: r => require.ensure([], () =>
          r(require('@/components/house/houseRecentContact'))
        , 'houseRecentContact')
    },
    // 会管家搜索页面
    {
      path: '/houseSearch',
      component: r => require.ensure([], () =>
          r(require('@/components/house/houseSearch'))
        , 'houseSearch')
    },
  ]
})
